<?php
header('Content-Type: text/html; charset=utf-8');
/**
 * @see ZemailGateway.php
 */
require_once (dirname(__FILE__).'/../../../config/config.inc.php');
require_once(dirname(__FILE__).'/../lib/zprofess/ZadminTab.php');
require_once dirname(__FILE__).'/../classes/ZemailGateway.php';
require_once dirname(__FILE__).'/../classes/ZticketObject.php';
require_once dirname(__FILE__).'/../classes/ZdepartmentObject.php';
require_once dirname(__FILE__).'/../classes/ZticketContentObject.php';
require_once(dirname(__FILE__).'/../classes/ZemailSend.php');

		$ZHELPDESK_USER = ConfigurationCore::get('ZHELPDESK_USER');
        $data = array();
        
        if (!isset($namemode)) $namemode = '--name_mode--';
        if (!isset($content)) $content = '--content--';
        
        $data['{content}'] = 'Xin chao! may da bi miss ticket';
        $path=_PS_ROOT_DIR_."/modules/zhelpdesk/mails/";
        $email='kurosaki@zprofess.com';
        $emailName ='kurosaki';
        
        /* sent notify to staff or department moderator */
        $rs = ZemailSend::Send(
        		1, 		/* id lang */
        		'templateEmail', 	/* template NOT */
        		Mail::l('tao day!'),  /* subject */
        		$data, 
        		$email, 
        		$emailName, 
        		NULL, 	/* $from_mail */ 
        		NULL, 	/* $name mail sending */ 
        		NULL,	/* file attachments */
        		NULL,	/* modeSMTP */
        		$path	/* templatePath */
        	);
        if ($rs)
        	echo 'succesfully!';
        else 
        	echo 'false';
